package com.charles.springcloud.alibaba.service.impl;

import com.charles.springcloud.alibaba.dao.PaymentDao;
import com.charles.springcloud.alibaba.entity.Payment;
import com.charles.springcloud.alibaba.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: 风中灵劲草
 * @Date: 2021/08/27/17:27
 * @Description:
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Autowired
    PaymentDao paymentDao;

    @Override
    public int create(Payment payment) {
        int result = paymentDao.create(payment);
        return result;
    }

    @Override
    public Payment getPaymentById(Long id) {
        Payment payment = paymentDao.getPaymentById(id);
        return payment;
    }
}
